import { FormSchema } from '/@/components/Table';
// import SignatureModal from './SignatureModal.vue';

export const tabsData = [
  {
    id: 1,
    name: '申请信息',
  },
  {
    id: 2,
    name: '流程图',
  },
  {
    id: 3,
    name: '审批信息',
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'workItemName',
    label: '申请名称',
    component: 'Input',
    required: true,
    ifShow: true,
    componentProps: {
      placeholder: '请输入申请名称',
    },
  },

  {
    field: 'choices',
    label: '审批意见',
    component: 'RadioGroup',
    required: true,
    ifShow: true,
    defaultValue: 1,
    componentProps: {
      options: [
        {
          label: '同意',
          value: 1,
        },
        {
          label: '不同意',
          value: 2,
        },
      ],
    },
  },

  {
    label: '您的意见',
    field: 'response',
    ifShow: true,
    component: 'InputTextArea',
    colProps: {
      span: 24,
    },
  },
];

// 流程传阅，意见征询
export const formhandSchema: FormSchema[] = [
  {
    field: 'workItemName',
    label: '文件',
    component: 'Input',
    ifShow: true,
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'acceptIdList',
    label: '人员',
    component: 'HChooseUser',
    itemProps: {
      autoLink: false,
    },
    required: true,
    ifShow: true,
    componentProps: {
      minSelect: -1,
      maxSelect: -1,
      placeholder: '请选择',
    },
  },
  {
    field: 'transComment',
    label: '说明',
    ifShow: true,
    component: 'InputTextArea',
    colProps: {
      span: 24,
    },
  },
];
export const formbatchSchema: FormSchema[] = [
  {
    field: 'workItemName',
    label: '文件',
    component: 'Input',
    ifShow: true,
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'acceptIdList',
    label: '人员',
    itemProps: {
      autoLink: false,
    },
    component: 'HChooseUser',
    required: true,
    ifShow: true,
    componentProps: {
      minSelect: -1,
      maxSelect: 1,
      placeholder: '请选择',
    },
  },
  {
    field: 'turntoMemo',
    label: '说明',
    ifShow: true,
    required: true,
    component: 'InputTextArea',
    colProps: {
      span: 24,
    },
  },
];

//意见征询办理
export const formconsultSchema: FormSchema[] = [
  {
    field: 'workItemName',
    label: '文件',
    component: 'Input',
    ifShow: true,
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'readComment',
    label: '意见',
    ifShow: true,
    required: true,
    component: 'InputTextArea',
    colProps: {
      span: 24,
    },
  },
];
